@extends('edu::layouts.center')
@section('content')
    @include('edu::center.favorite.nav')
    <div class="bg-white border shadow-sm p-4 mt-3">
        @if($models->count()>0)
            <div class="row">
                @foreach($models as $model)
                    <div class="col-12 col-md-4 lesson mb-4 d-flex flex-column justify-content-between">
                        <a href="{{route('edu.front.lesson.show',$model)}}" class="d-block shadow-sm lesson">
                            <div class="card">
                                <div class="card-body p-0">
                                    <img
                                        src="{{$model->thumb}}">
                                </div>
                                <div class="card-body lesson-title">{{$model->title}}</div>
                                <div class="card-footer d-flex justify-content-between text-secondary small bg-light">
                                    <span>开始学习</span>
                                    <span>
                                    <i aria-hidden="true" class="fa fa-film ml-3"></i>
                                    {{$model->video_num}}节课
                                </span>
                                </div>
                            </div>
                        </a>
                    </div>
                @endforeach
            </div>
        @else
            @include('edu::layouts.nothingTips',['content'=>'暂无收藏课程'])
        @endif
    </div>
@endsection
